package entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Embeddable
public class UserCheckID implements Serializable{
	private static final long serialVersionUID = 1L;
	@Column(name="USERNAME", length=50)
	private String username;
	@ManyToOne(targetEntity=User.class)
	@JoinColumn(name="USERID")
	private User user;
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
}
